//首页的样式less文件
//@import是导入的意思 可以把一个样式文件引入到另一个样式文件里面
//link是吧一个样式文件引入到html页面里面
@import "common";

body{
    min-width:  320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background: #f2f2f2;
}
@baseFont: 50;
.search-content{
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: (88rem / @baseFont);
    background-color: #FFC001;
    .classify{
        width: (44rem / @baseFont);
        height: (70rem / @baseFont);
        background-color: pink;
        // 插入背景图之后要进行缩放
        // background-size: (44rem / @baseFont) (70rem / @baseFont);
        margin: (11rem / @baseFont) (25rem / @baseFont) (7rem / @baseFont) (24rem/@baseFont);
    }
    .search{
        flex: 1;
        // background-color: plum;
        input{
            outline: none;
            border: 0;
            width: 100%;
            height: (66rem / @baseFont);
            background-color: #fff2cc;
            border-radius: (33rem /@baseFont);
            margin-top: (12rem / @baseFont);
            padding-left: (54rem / @baseFont);
            font-size: (25rem / @baseFont);
            color: #757575;

        }
    }
    .login{
        width: (75rem / @baseFont);
        height: (70rem / @baseFont);
        margin: (10rem / @baseFont);
        // background-color: skyblue;
        line-height: (70rem / @baseFont);
        font-size: (25rem / @baseFont);
        color: #fff;
        text-align: center;
    }
}

// banner
.banner{
    // padding-top: (70rem / @baseFont);
    width: (750rem / @baseFont);
    height: (368rem / @baseFont);
    img{
        width: 100%;
        height: 100%;
    }
}

// nav
nav{
    width: (750rem / @baseFont);
    a{  
        float: left;
        display: block;
        text-align: center;
        width: (150rem / @baseFont);
        height: (140rem / @baseFont);
        img{
            display: block;
            width: (84rem / @baseFont);
            height: (84rem / @baseFont);
            margin: (10rem / @baseFont) auto 0;
        }
        div{
            color: #333;
            font-size: (25rem / @baseFont);
        }
    }
}

